package com.dsg.service.apply;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.apply.DsgApplyBill;
import com.dsg.entity.apply.DsgApplyPay;
import com.dsg.entity.dto.CusPayDto;
import com.dsg.entity.dto.CusPaymentDto;

import java.util.List;

/**
 * <p>
 * 繳款資料 服务类
 * </p>
 *
 * @author system
 * @since 2020-07-04
 */
public interface IDsgApplyPayService extends IService<DsgApplyPay> {
    Integer successInFourMonth(DsgApplyBill bill);

    void setIsTransfer(String oid, int isTransfer) throws Exception;

    List<CusPayDto> selectPay(String ownsId);

    boolean audit(DsgApplyPay pay, String appNo);

    /**
     * 审核所有付款资料
     * @param bill
     * @return
     */
    boolean payAuditAll(DsgApplyBill bill);

    /**
     *
     * @param ownsId
     * @param onProcess 是否處理中
     * @param carNo
     * @param payAccountNo
     * @return
     */
    List<CusPaymentDto> selectCusPay(String ownsId, Boolean onProcess, String carNo, String payAccountNo);
}
